import { MockMethod } from 'vite-plugin-mock';
export default [
  // 短期触达数据
  {
    url: '/haichuan/assembly/short/touch',
    method: 'get',
    response: () => {
      return {
        code: 0,
        msg: '请求成功',
        data: {
          overview: [
            { title: '在班人数', data: '100' },
            { title: '续报率', data: '80.3%' }
          ],
          trend: [
            {
              title: '分期次-绑定率&进群率',
              data: [
                {
                  show_text: '绑定率',
                  trend_data: [
                    { trend_title: '1', trend_num: 24.14 },
                    { trend_title: '2', trend_num: 29.02 },
                    { trend_title: '3', trend_num: 24.14 },
                    { trend_title: '4', trend_num: 29.02 }
                  ]
                },
                {
                  show_text: '进群率',
                  trend_data: [
                    { trend_title: '1', trend_num: 30.14 },
                    { trend_title: '2', trend_num: 50.02 },
                    { trend_title: '3', trend_num: 50.14 },
                    { trend_title: '4', trend_num: 60.02 }
                  ]
                }
              ]
            },
            {
              title: '分期次-绑定率&进群率',
              data: [
                {
                  show_text: '绑定率',
                  trend_data: [
                    { trend_title: '1', trend_num: 24.14 },
                    { trend_title: '2', trend_num: 29.02 },
                    { trend_title: '3', trend_num: 24.14 },
                    { trend_title: '4', trend_num: 29.02 }
                  ]
                },
                {
                  show_text: '进群率',
                  trend_data: [
                    { trend_title: '1', trend_num: 30.14 },
                    { trend_title: '2', trend_num: 50.02 },
                    { trend_title: '3', trend_num: 50.14 },
                    { trend_title: '4', trend_num: 60.02 }
                  ]
                }
              ]
            }
          ],
          column: [
            { prop: 'year_name', label: '学年', sortable: false },
            { prop: 'term_name', label: '学期', sortable: false },
            { prop: 'base_dept_name', label: '基地', sortable: false },
            { prop: 'subject_name', label: '学科', sortable: false },
            { prop: 'child_id', label: '下级ID', sortable: false },
            { prop: 'child_name', label: '下级名称', sortable: false, click: { status: true, relevant: 'child_id' } },
            { prop: 'class_num', label: '在班人数', sortable: true },
            { prop: 'join_wechat_rote', label: '加微率', sortable: true },
            { prop: 'join_group_rote', label: '进群率', sortable: true }
          ],
          datas: [
            {
              row: {
                id: 1,
                year_id: 1,
                year_name: '22-23学年',
                term_id: 1,
                term_name: '三季度',
                base_dept_id: 1,
                base_dept_name: '沈阳基地',
                subject_id: 1,
                subject_name: '语文',
                child_id: 1,
                child_name: '语文学科',
                class_num: '100',
                join_wechat_rote: '80.3%',
                join_group_rote: '70.5%',
                call_rote: '70.5%'
              },
              op_group: []
            }
          ],
          page: { page: 1, pageSize: 20, total: 134 }
        }
      };
    }
  },
  // 短期触达筛选项
  {
    url: '/haichuan/assembly/short/touch/selection',
    method: 'get',
    response: () => {
      return {
        code: 0,
        msg: '请求成功',
        data: [
          {
            type: 'select',
            column: 'year_id',
            label: '学年',
            placeholder: '请选择',
            value: '',
            disabled: false,
            options: [
              { label: '21-22学年', value: 1, group: '' },
              { label: '22-23学年', value: 2, group: '' }
            ]
          },
          {
            type: 'select',
            column: 'semester_id',
            label: '学年',
            placeholder: '请选择',
            value: '',
            disabled: false,
            options: [
              { label: '一季度', value: 1, group: '' },
              { label: '二季度', value: 2, group: '' }
            ]
          }
        ]
      };
    }
  },
  // 短期行课
  {
    url: '/haichuan/assembly/short/plandata',
    method: 'get',
    response: () => {
      return {
        code: 0,
        data: {
          overview: [
            { title: '在班人次', data: '200' },
            { title: '出勤率', data: '60.13%' },
            { title: '完课率', data: '79.32%' },
            { title: '作业提交率', data: '68%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' },
            { title: '作业订正率', data: '58.40%' }
          ],
          trend: [
            {
              title: '出勤率趋势',
              data: [
                {
                  show_text: '出勤率',
                  trend_data: [
                    {
                      trend_title: '1',
                      trend_num: 56.25
                    },
                    {
                      trend_title: '2',
                      trend_num: 43.37
                    },
                    {
                      trend_title: '3',
                      trend_num: 41.07
                    },
                    {
                      trend_title: '4',
                      trend_num: 2.51
                    }
                  ]
                }
              ]
            },
            {
              title: '完课率趋势',
              data: [
                {
                  show_text: '完课率',
                  trend_data: [
                    {
                      trend_title: '1',
                      trend_num: 56.25
                    },
                    {
                      trend_title: '2',
                      trend_num: 83.37
                    },
                    {
                      trend_title: '3',
                      trend_num: 41.07
                    },
                    {
                      trend_title: '4',
                      trend_num: 62.51
                    }
                  ]
                }
              ]
            }
          ],
          column: [
            { prop: 'year_name', label: '学年', sortable: false, click: false },
            { prop: 'term_name', label: '学期', sortable: false, click: false },
            { prop: 'course_type', label: '课程类型', sortable: false, click: false },
            { prop: 'course_term', label: '期数', sortable: false, click: false },
            { prop: 'depart', label: '学部', sortable: false, click: false },
            { prop: 'base', label: '基地', sortable: false, click: false },
            { prop: 'subject', label: '学科', sortable: false, click: false },
            { prop: 'subject_group_leader_id', label: '学科组长ID', sortable: false, click: { status: true, relevant: 'child_id' } },
            { prop: 'subject_group_leader_name', label: '学科组长姓名', sortable: false, click: { status: true, relevant: 'child_id' } },
            { prop: 'teaching_group_leader_id', label: '教学组长ID', sortable: false, click: { status: true, relevant: 'child_id' } },
            { prop: 'teaching_group_leader_name', label: '教学组长姓名', sortable: false, click: false },
            { prop: 'counsellor_id', label: '辅导ID', sortable: false, click: false },
            { prop: 'counsellor_name', label: '辅导姓名', sortable: false, click: false },
            { prop: 'class_id', label: '班级ID', sortable: false, click: true },
            { prop: 'class_name', label: '班级姓名', sortable: false, click: true },
            { prop: 'plan_order', label: '讲次顺序', sortable: true, click: false },
            { prop: 'stu_num_In_Class', label: '在班人次', sortable: true, click: false },
            { prop: 'live_attending_stu_num', label: '出勤人次', sortable: true, click: false },
            { prop: 'live_attending_rate', label: '出勤率', sortable: true, click: false },
            { prop: 'plan_completing_stu_num', label: '完课人次', sortable: true, click: false },
            { prop: 'plan_completing_rate', label: '完课率', sortable: true, click: false },
            { prop: 'homework_comitting_stu_num', label: '作业提交人次', sortable: true, click: false },
            { prop: 'homework_comitting_rate', label: '作业提交率', sortable: true, click: false },
            { prop: 'homework_revising_stu_num', label: '作业订正人次', sortable: true, click: false },
            { prop: 'homework_revising_rate', label: '作业订正率', sortable: true, click: false }
          ],
          datas: [
            {
              row: {
                id: 1,
                year_id: 22,
                year_name: '22学年',
                term_id: 3,
                term_name: '秋季',
                course_type_id: 346,
                course_type_name: '短期课',
                course_term_id: 2,
                course_term_name: '2期',
                depart_id: 1,
                depart: '语文学部',
                base_id: 2,
                base: '北京基地',
                subject_id: 1,
                subject_name: '语文',
                subject_group_leader_id: 1234,
                subject_group_leader_name: '闫昌',
                teaching_group_leader_id: 5678,
                teaching_group_leader_name: '赵远通',
                counsellor_id: 3478,
                counsellor_name: '陈腾龙',
                class_id: 12896,
                class_name: '虚构班级1',
                child_id: 1,
                child_name: '语文学科',
                plan_order: 1,
                stu_num_in_class: 600,
                live_attending_stu_num: 300,
                live_attending_rate: 50,
                plan_completing_stu_num: 200,
                plan_completing_rate: 33.33,
                homework_comitting_stu_num: 300,
                homework_comitting_rate: 50,
                homework_revising_stu_num: 200,
                homework_revising_rate: 33.33
              },
              op_group: []
            },
            {
              row: {
                id: 2,
                year_id: 22,
                year_name: '22学年',
                term_id: 3,
                term_name: '秋季',
                course_type_id: 346,
                course_type_name: '短期课',
                course_term_id: 2,
                course_term_name: '2期',
                depart_id: 1,
                depart: '语文学部',
                base_id: 2,
                base: '北京基地',
                subject_id: 1,
                subject_name: '语文',
                subject_group_leader_id: 1234,
                subject_group_leader_name: '闫昌',
                teaching_group_leader_id: 5678,
                teaching_group_leader_name: '赵远通',
                counsellor_id: 3478,
                counsellor_name: '陈腾龙',
                child_id: 1,
                child_name: '语文学科',
                class_id: 12896,
                class_name: '虚构班级1',
                plan_order: 2,
                stu_num_in_class: 600,
                live_attending_stu_num: 300,
                live_attending_rate: 50,
                plan_completing_stu_num: 200,
                plan_completing_rate: 33.33,
                homework_comitting_stu_num: 300,
                homework_comitting_rate: 50,
                homework_revising_stu_num: 200,
                homework_revising_rate: 33.33
              },
              op_group: []
            }
          ],
          page: { page: 1, pageSize: 20, total: 134 }
        },
        msg: 'success',
        trace_id: '509b690f-b8c5-4c93-9120-917f6dfa5aa4'
      };
    }
  },
  // 长期续报列表
  {
    url: '/haichuan/assembly/short/transform',
    method: 'get',
    response: () => {
      return {
        code: 0,
        msg: '请求成功',
        data: {
          overview: [
            { title: '在班人数', data: '100' },
            { title: '续报率', data: '80.3%' }
          ],
          column: [
            { prop: 'year_name', label: '学年', sortable: false },
            { prop: 'term_name', label: '学期', sortable: false },
            { prop: 'base_dept_name', label: '基地', sortable: false },
            { prop: 'subject_name', label: '学科', sortable: false },
            { prop: 'child_id', label: '下级ID', sortable: false },
            { prop: 'child_name', label: '下级名称', sortable: false, click: { status: true, relevant: 'child_id' } },
            { prop: 'class_num', label: '在班人数', sortable: true },
            { prop: 'renew_rote', label: '续报率', sortable: true },
            { prop: 'lost_rote', label: '流失率', sortable: true }
          ],
          datas: [
            {
              row: {
                id: 3,
                year_id: 1,
                year_name: '22-23学年',
                term_id: 1,
                term_name: '三季度',
                base_dept_id: 1,
                base_dept_name: '沈阳基地',
                subject_id: 1,
                subject_name: '语文',
                child_id: 1,
                child_name: '语文学科',
                class_num: '100',
                renew_rote: '80.3%',
                lost_rote: '70.5%'
              },
              op_group: []
            }
          ],
          page: { page: 1, pageSize: 20, total: 134 }
        }
      };
    }
  },
  // 长期续报列表筛选项
  {
    url: '/haichuan/assembly/short/transform/selection',
    method: 'get',
    response: () => {
      return {
        code: 0,
        msg: '请求成功',
        data: [
          {
            type: 'select',
            column: 'year_id',
            label: '学年',
            placeholder: '请选择',
            value: '1',
            disabled: false,
            options: [
              { label: '21-22学年', value: 1, group: '' },
              { label: '22-23学年', value: 2, group: '' }
            ]
          },
          {
            type: 'input',
            column: 'year_id2',
            label: '学期',
            placeholder: '请选择',
            value: '',
            disabled: false,
            options: [
              { label: '21-22学年', value: 1, group: '' },
              { label: '22-23学年', value: 2, group: '' }
            ]
          },
          {
            type: 'selectMulti',
            column: 'year_id3',
            label: '学期',
            placeholder: '请选择',
            value: '1,2',
            disabled: false,
            options: [
              { label: '21-22学年', value: 1, group: '' },
              { label: '22-23学年', value: 2, group: '' }
            ]
          }
        ]
      };
    }
  }
] as MockMethod[];
